<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>p3_CSS常用值</title>
    <style>
        h1 {
            color: red;
            color: rgb(255,0,0);
            color: rgb(0,255,255);
            color: rgb(0,255,0);
            color: rgb(255,0,255);
            color: rgb(0,0,255);
            color: rgb(255,255,0);
            color: rgb(255,255,255);
            color: rgb(0,0,0);

            color: #FF0000;
            color: #00FF00;
            color: #0000FF;
            color: #FFFF00;
            color: #FFFFFF;
            color: #000000;
            color: #808080;
            color: #888888;

            color: rgba(255,0,0,0.9);
            color: rgba(255,0,0,0.8);
            color: rgba(255,0,0,0.7);
            color: rgba(255,0,0,0.6);
            color: rgba(255,0,0,0.5);
            color: rgba(255,0,0,0.4);
            color: rgba(255,0,0,0.3);
            color: rgba(255,0,0,0.2);
            color: rgba(255,0,0,0.1);
            color: rgba(255,0,0,0);
            color: rgba(255,0,0,1);
        }
        .d1 {
            /* 定义元素的宽度为50像素，为展示背景图像设置固定的宽度 */
            width: 500px;
            /* 定义元素的高度为100像素，为展示背景图像设置固定的高度 */
            height: 300px;
            /* 设置背景图像为位于./img/mr.png的图片，确保图像能正确加载并展示 */
            background-image: url("../789.jpg");
            /* 调整背景图像的大小为50像素宽100像素高，确保图像在元素内正确显示 */
            background-size: 500px 300px;
            /* 设置背景颜色为青色，为背景图像提供一个明显的展示背景 没有图片的地方显示背景色 */
            background-color: cyan;

        }
        .d2 {
            width: 500px;
            height: 300px;
            border: 5px solid red;
            background-image: url("./img/mr.png");
            /* 设置背景图像不重复铺排 */
            background-repeat: no-repeat;
            /* 设置背景图像的定位，使其在页面上显示在特定位置 */
            background-position: 0 0;
            background-position: -50px 0;
            background-position: 0 100px;
            background-position: -50px -100px;
            background-position: center center;
            background-position: center;
            background-position: 50% 50%;/*居中*/
            background-position: 100% 100%;/*右下角*/
        }
        .d3 {
            width: 500px;
            height: 300px;
            background-image: linear-gradient( 30deg,red, yellow, green, blue,purple);
        }
    </style>
</head>
<body>
    <h1>测试文字颜色</h1>
    <!--.d*3 Tab补全-->
    <div class="d1"></div>
    <div class="d2"></div>
    <div class="d3"></div>
</body>
</html>





















